package com.ww.juc.jd.async.basic.diy;

import lombok.Data;

/**
 * 包装器类，包装worker和listener
 */
@Data
public class Wrapper {

    private String param;

    private Worker worker;

    private Listener listener;

    public void addListener(Listener listener) {
        this.listener = listener;
    }

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public Worker getWorker() {
		return worker;
	}

	public void setWorker(Worker worker) {
		this.worker = worker;
	}

	public Listener getListener() {
		return listener;
	}

	public void setListener(Listener listener) {
		this.listener = listener;
	}
}
